<script setup lang="ts">
  import { loginByPasswordAPI } from '@/api/user'
  import { useCounterStore } from '@/stores/counter'

  const store = useCounterStore()
  // 请求测试
  const login = async () => {
    const res = await loginByPasswordAPI({
      mobile: '13211112222',
      // 密码 abc123456 测试：出现非 10000 的情况
      password: 'abc12345',
    })
    console.log(res.token)
    console.log('  ----->  ', useCounterStore())
  }
</script>
<template>
  <view class="content">
    <button @click="login">测试登录</button>
    <button @click="">11</button>
  </view>
</template>
